#region History

/* --------------------------------------------------------------------------------
 * Client Name: Bd Market Ltd.
 * Project Name: BdMarket
 * Module: App.Web.ViewModels 
 * Name: UOM.cs
 * Purpose: ViewModel class for U O M
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  01/21/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace App.Web.ViewModels
{
    [Serializable]
    public class StoreViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
        //public int CompanyID { get; set; }

        [Required(ErrorMessage = "Please Insert Store Address")]
        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Address")]
        public String Address { get; set; }

        [Required(ErrorMessage = "Please Insert Phone Number")]
        [StringLength(50, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Phone")]
        public String Phone { get; set; }

        [Required(ErrorMessage = "Please Select Store In-Charge Name")]
        [Range(1, int.MaxValue, ErrorMessage = "Please Select Store In-Charge Name")]
        [Display(Name = "Selecct Store In-Charge")]
        public int InCharge { get; set; }

        //[Required(ErrorMessage = "Please Select an Unit of Measurement")]
        //[Range(1, int.MaxValue, ErrorMessage = "Please Select an Unit of Measurement")]
        //[Display(Name = "Unit of Measurement")]
        //public int UomID { get; set; }

        [Required(ErrorMessage = "Please Select Store Active or Not")]
        [Display(Name = "IsActive")]
        public String IsActive { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "WeeklyCloseDay")]
        public String WeeklyCloseDay { get; set; }

        [StringLength(500, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "StoreDetails")]
        public String StoreDetails { get; set; }



            
        //[Required(ErrorMessage= "Please Enter a Created On")]
        //[Display(Name = "Created On")] 
        //public String CreatedOn	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Createb By")]
        //[Display(Name = "Createb By")] 
        //public String CreatebBy	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Modified On")]
        //[Display(Name = "Modified On")] 
        //public String ModifiedOn	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Modified By")]
        //[Display(Name = "Modified By")] 
        //public String ModifiedBy	{ get; set; }
	}
}

